package com.cy.pj.sys.service.impl;

import com.cy.pj.sys.Dao.CGBMenuDao;
import com.cy.pj.sys.pojo.CGBMenu;
import com.cy.pj.sys.service.CGBMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CGBMenuServiceImpl implements CGBMenuService {
    @Autowired
    private CGBMenuDao cgbMenuDao;
    @Override
    public List<CGBMenu> selectMenus() {
        return cgbMenuDao.selectMenus();
    }

    @Override
    public int updateMenu(CGBMenu cgbMenu) {
        return cgbMenuDao.updateMenu(cgbMenu);
    }
}
